<html xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
<ui:component>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

        <title>
            <ui:insert name="tittle">
                <h:outputText value="#{welcomeSessionBean.tittle}"/>
            </ui:insert>
        </title>


        <!--<link rel="stylesheet" type="text/css" href="./style/css/main.css"/>-->
        <a4j:loadStyle src="resource://META-INF/frenjoynet/core/ui/style/css/main.css"/>
    </head>

    <body class="rich-panel" style="background-color:#{a4jSkin.generalBackgroundColor};">
    <h:form>
       <a4j:outputPanel ajaxRendered="true">
        <rich:modalPanel width="350" height="100" binding="#{errorHandling.popup}">
            <f:facet name="header">
                <h:panelGroup>
                    <h:outputText value="Error panel"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="controls">
                <h:panelGroup>
                    <h:graphicImage value="./style/images/close.PNG" styleClass="hidelink" id="hidelink"/>
                    <rich:componentControl for="panelError" attachTo="hidelink" operation="hide" event="onclick"/>
                </h:panelGroup>
            </f:facet>
            <h:outputText value="#{errorHandling.message}"></h:outputText>
        </rich:modalPanel>
        </a4j:outputPanel>
    </h:form>
    <h:panelGroup id="centered" layout="block"
                  styleClass="rich-panel-body rich-laguna-panel-no-header, wrapper"
            >
        <h:panelGroup id="header" styleClass="header" layout="block">

            <ui:insert name="header">
                <ui:include src="../../../contacts/core/ui/header.xhtml"/>
            </ui:insert>

        </h:panelGroup>

        <h:panelGroup id="body" styleClass="bodycontent" layout="block">

            <ui:insert name="bodycontent"/>

        </h:panelGroup>

        <div class="clearfooter"/>

        <h:panelGroup id="footer" styleClass="footer" layout="block">

            <ui:insert name="footer">
                <ui:include src="../../../contacts/core/ui/footer.xhtml"/>
            </ui:insert>

        </h:panelGroup>

        <h:panelGroup id="command" styleClass="commandfooter" layout="block">

            <ui:insert name="commandFooter"/>

        </h:panelGroup>

    </h:panelGroup>


    </body>

</ui:component>
</html>



